package org.apache.catalina.jv.test;

import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.apache.catalina.valves.ValveBase;

import javax.servlet.ServletException;
import java.io.IOException;

public class MyValve extends ValveBase {
    /**
     * 这里居然有request和response
     * @param request The servlet request to be processed
     * @param response The servlet response to be created
     *
     * @throws IOException
     * @throws ServletException
     */
    @Override
    public void invoke(Request request, Response response) throws IOException, ServletException {

    }

    @Override
    public void backgroundProcess(){

    }
}
